import request from '/@/utils/request';

/**获取验证码图片,增加前缀，否则单体时获取路径错误*/
export function reqGet(query?: Object) {
	return request({
		url: '/gateway/code',
		method: 'get',
		params: query,
	});
}

//滑动或者点选验证,增加前缀，否则单体时获取路径错误
export function reqCheck(data?: Object) {
	return request({
		url: '/gateway/code/check',
		method: 'post',
		data: data,
	});
}
